package com.hougong.im.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hougong.im.body.httpresponse.MyFriendListVo;
import com.hougong.im.entity.Friend;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 好友表 Mapper 接口
 * </p>
 *
 * @author lsz
 * @since 2018-08-25
 */
public interface FriendMapper extends BaseMapper<Friend> {
    Friend isFriend(@Param("fromUid") Long fromUid, @Param("toUid") Long toUid);

    List<MyFriendListVo> findMyFriends(@Param("currentUid")Long currentUid);

    int deleteFriend(@Param("fid")Long fid,@Param("tid")Long tid);
}
